<?php echo $this->element('slide'); ?>
<section id="content">
	<section id="left-bar">
		<div class="box-left">
			<?php echo $this->element('categories'); ?>
		</div>
		
		<div class="box-left">
			<?php echo $this->element('genres'); ?>
		</div>
		
		
		<div class="box-left">
			<h2>Bảng xếp hạng</h2>
			<div class="menu-left">
				<ul>
					<li>
						<a href="#" class="top2"><span>1</span>Giáo dục</a>
					</li>
					
					<li>
						<a href="#" class="top2"><span>2</span>Giải trí</a>
					</li>
					
					<li>
						<a href="#" class="top10"><span>3</span>Giải trí</a>
					</li>
					
					<li>
						<a href="#" class="top10"><span>4</span>Giải trí</a>
					</li>
					
					<li>
						<a href="#" class="top10"><span>5</span>Giải trí</a>
					</li>
					
					<li>
						<a href="#" class="top10"><span>6</span>Giải trí</a>
					</li>
					
					<li>
						<a href="#" class="top10"><span>7</span>Giải trí</a>
					</li>
					
					<li>
						<a href="#" class="top10"><span>8</span>Giải trí</a>
					</li>
					
					<li>
						<a href="#" class="top10"><span>9</span>Giải trí</a>
					</li>
					
					<li>
						<a href="#" class="top10"><span>10</span>Giải trí</a>
					</li>
					
				</ul>
			</div>
		</div>
	</section>
	
	
	<section id="right-content">
		<p style="margin: 20px 0px; padding: 0px 0px 0px 20px" id="tag" class="tag">Có <b><?php echo count($tag_games['Game']); ?></b> kết quả với tag <b><?php echo $tag_games['Tag']['name']; ?>	</b></p>
		<?php $stt = 0; foreach ($tag_games['Game'] as $game): ?>
			<?php  $stt++; ?>
			<?php if($stt == 1) : ?>
				<section class="box-game">
			<?php endif; ?>
				<section class="box">
					<?php echo $this->Html->image($game['thumbnail'], array('class' => 'img-box')); ?>
					
					<h3 class="game-title" style="margin-bottom: 20px;">
						<?php echo $this->Html->link($game['name'], '/game/'.$game['id'].'-'.$game['alias']); ?>
					</h3>
					
					
				</section>
			<?php if($stt == 3): ?>
			</section>
			<?php $stt = 0; endif; ?>
		<?php endforeach; ?>	
	</section>
	
	
</section>